package com.kun.service.topic;

import org.springframework.amqp.rabbit.annotation.*;
import org.springframework.stereotype.Service;

@Service
@RabbitListener(bindings = @QueueBinding(
        value = @Queue(value = "sms_queue_topic",durable = "true",autoDelete = "false"),
        exchange = @Exchange(value = "order_topic_exchange",durable = "true",type = "topic"),
        key = "#.sms.#"
))
public class SmsService_topic {



    @RabbitHandler(isDefault = true)
    public void receiveSmsMessage(String message){

        System.out.println("topic: Received SMS message: " + message);

    }

}
